import 'package:flutter/material.dart';

/// 切换角色
class UserRole with ChangeNotifier {
  //1.修理厂  2.汽配商 3.勘察员
  int _role = 1;

  ///返回 role
  int get role => _role;

  /// 切换角色
  void upDateUserRole(int role) {
    _role = role;
    notifyListeners();
  }
}
